<?php

namespace app\model\freightForward;

use app\factory\Factory;
use app\model\ModelBase;

class FreightForward extends ModelBase
{
    //货代id
    protected $forwardId;
    //货代名称
    protected $name;


    /**
     * 获取对象实例
     * @return
     */
    static public function getObj()
    {
        $count = Factory::createUniqueNumber();
        $obj = app(FreightForward::class);
        $obj->setForwardId($count);
        return $obj;
    }

    /**
     * @return mixed
     */
    public function getForwardId()
    {
        return $this->forwardId;
    }

    /**
     * @param mixed $forwardId
     */
    public function setForwardId($forwardId): void
    {
        $this->forwardId = $forwardId;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name): void
    {
        $this->name = $name;
    }




}